package com.nlp.visualization.pojo.NLP.sen;

import java.util.List;

public class SentenceEntity {


    /**
     * text : 今天天气怎么样
     * items : [{"id":"1","word":"今天","pos":"t","head":"2","deprel":"ATT","detail":"主位关系"}]
     */

    private String text;
    private List<ItemsBean> items;

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public List<ItemsBean> getItems() {
        return items;
    }

    public void setItems(List<ItemsBean> items) {
        this.items = items;
    }

    public static class ItemsBean {
        /**
         * id : 1
         * word : 今天
         * pos : t
         * head : 2
         * deprel : ATT
         * detail : 主位关系
         */

        private String id;
        private String word;
        private String pos;
        private String head;
        private String deprel;
        private String detail;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getWord() {
            return word;
        }

        public void setWord(String word) {
            this.word = word;
        }

        public String getPos() {
            return pos;
        }

        public void setPos(String pos) {
            this.pos = pos;
        }

        public String getHead() {
            return head;
        }

        public void setHead(String head) {
            this.head = head;
        }

        public String getDeprel() {
            return deprel;
        }

        public void setDeprel(String deprel) {
            this.deprel = deprel;
        }

        public String getDetail() {
            return detail;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        @Override
        public String toString() {
            return "" +
                    "" + id + "" +
                    ", '" + word + '\'' +
                    ", '" + pos + '\'' +
                    "," + head + "" +
                    ", '" + deprel + '\'' +
                    ", '" + detail + '\'';
        }
    }

    @Override
    public String toString() {
        String str = "";
        for (ItemsBean bean : items) {
            str += bean.toString() + "\n";

        }
        return str;
    }
}
